package com.koron.common.core.business.message.mapper;

import com.koron.common.core.business.message.bean.dto.AccountPhone;
import com.koron.common.core.business.message.bean.dto.MessageTopicDto;
import com.koron.common.core.business.message.bean.po.MessageTopicPo;
import com.koron.common.core.business.message.bean.vo.MessageTopicVo;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 消息主题表(MessageTopic)表数据库访问层
 *
 * @author zhouj
 * @since 2022-03-16 14:14:08
 */
public interface MessageTopicMapper {

    int insertOrUpdate(MessageTopicPo messageTopic);

    int insertOrUpdateBatch(@Param("list") List<MessageTopicPo> messageTopicList);

    int insert(MessageTopicPo messageTopic);

    int insertBatch(@Param("list") List<MessageTopicPo> messageTopicList);

    int update(MessageTopicPo messageTopic);

    int deleteById(String id);

    MessageTopicVo queryById(String id);

    List<MessageTopicPo> queryList(MessageTopicPo messageTopic);

    MessageTopicDto queryByCode(String code);

    List<AccountPhone> queryPhoneByAccountList(@Param("list") List<String> accountList);
}